package com.sky.service;

import com.sky.result.Result;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author 42
 * @date 2025/4/6
 * @Description
 */
public interface ReportService {
    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    Result<TurnoverReportVO> turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户量统计
     * @param begin
     * @param end
     * @return
     */
    Result<UserReportVO> userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计接口
     * @param begin
     * @param end
     * @return
     */
    Result<OrderReportVO> orderStatistics(LocalDate begin, LocalDate end);

    /**
     * 统计top10的销量数据
     * @param begin
     * @param end
     * @return
     */
    Result<SalesTop10ReportVO> top10Statistics(LocalDate begin, LocalDate end);

    /**
     * 导出近30天的运营数据报表
     * @param response
     **/
    void exportBusinessData(HttpServletResponse response);
}
